package Solutions


func numDifferentIntegers(word string) int {
    var ws=[]byte(word)
    var mp=make(map[string]struct{})
    var l=0;
    for i:=0;i<len(ws);i++{
        if ws[i]<'0'||ws[i]>'9'{
            if l!=i{
                for ws[l]=='0'{
                    l++
                }
                var s=string(ws[l:i])
                mp[s]=struct{}{}
            }
           l=i+1 
         
        }
    }
    if l!=len(ws){
        for l<len(ws)&&ws[l]=='0'{
                    l++
        }
        mp[string(ws[l:])]=struct{}{}
    }
    return len(mp)
}